import ajax from './ajax'

export default {

  loadSummary(onSuccess) {
    ajax.get('/tickets/summary')
        .then(onSuccess);
  },

  searchOrders(query, onSuccess) {
    ajax.get('/tickets/orders?q=' + query)
        .then(onSuccess);
  }
}